package com.yihaodian.search;

import com.yihaodian.api.search.SearchException;

/**
 * We divide the search operation in many phrase:
 * eg: query phrase; fetch phrase; highlight phrase ...
 * Each phrase will implement its own code.
 * 
 * The {@link SearchContext} hold the input and output in the whold process.
 * 
 * @author zhaowei1
 *
 */
public interface SearchPhase {
	public void execute(SearchContext context) throws SearchException;
}
